package com.CmJava.crowd.entity;

import java.util.ArrayList;
import java.util.List;

public class GoodExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGoodnameIsNull() {
            addCriterion("goodName is null");
            return (Criteria) this;
        }

        public Criteria andGoodnameIsNotNull() {
            addCriterion("goodName is not null");
            return (Criteria) this;
        }

        public Criteria andGoodnameEqualTo(String value) {
            addCriterion("goodName =", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameNotEqualTo(String value) {
            addCriterion("goodName <>", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameGreaterThan(String value) {
            addCriterion("goodName >", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameGreaterThanOrEqualTo(String value) {
            addCriterion("goodName >=", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameLessThan(String value) {
            addCriterion("goodName <", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameLessThanOrEqualTo(String value) {
            addCriterion("goodName <=", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameLike(String value) {
            addCriterion("goodName like", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameNotLike(String value) {
            addCriterion("goodName not like", value, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameIn(List<String> values) {
            addCriterion("goodName in", values, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameNotIn(List<String> values) {
            addCriterion("goodName not in", values, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameBetween(String value1, String value2) {
            addCriterion("goodName between", value1, value2, "goodname");
            return (Criteria) this;
        }

        public Criteria andGoodnameNotBetween(String value1, String value2) {
            addCriterion("goodName not between", value1, value2, "goodname");
            return (Criteria) this;
        }

        public Criteria andCurrentamountIsNull() {
            addCriterion("currentAmount is null");
            return (Criteria) this;
        }

        public Criteria andCurrentamountIsNotNull() {
            addCriterion("currentAmount is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentamountEqualTo(Integer value) {
            addCriterion("currentAmount =", value, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountNotEqualTo(Integer value) {
            addCriterion("currentAmount <>", value, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountGreaterThan(Integer value) {
            addCriterion("currentAmount >", value, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountGreaterThanOrEqualTo(Integer value) {
            addCriterion("currentAmount >=", value, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountLessThan(Integer value) {
            addCriterion("currentAmount <", value, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountLessThanOrEqualTo(Integer value) {
            addCriterion("currentAmount <=", value, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountIn(List<Integer> values) {
            addCriterion("currentAmount in", values, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountNotIn(List<Integer> values) {
            addCriterion("currentAmount not in", values, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountBetween(Integer value1, Integer value2) {
            addCriterion("currentAmount between", value1, value2, "currentamount");
            return (Criteria) this;
        }

        public Criteria andCurrentamountNotBetween(Integer value1, Integer value2) {
            addCriterion("currentAmount not between", value1, value2, "currentamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountIsNull() {
            addCriterion("targetAmount is null");
            return (Criteria) this;
        }

        public Criteria andTargetamountIsNotNull() {
            addCriterion("targetAmount is not null");
            return (Criteria) this;
        }

        public Criteria andTargetamountEqualTo(Integer value) {
            addCriterion("targetAmount =", value, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountNotEqualTo(Integer value) {
            addCriterion("targetAmount <>", value, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountGreaterThan(Integer value) {
            addCriterion("targetAmount >", value, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountGreaterThanOrEqualTo(Integer value) {
            addCriterion("targetAmount >=", value, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountLessThan(Integer value) {
            addCriterion("targetAmount <", value, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountLessThanOrEqualTo(Integer value) {
            addCriterion("targetAmount <=", value, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountIn(List<Integer> values) {
            addCriterion("targetAmount in", values, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountNotIn(List<Integer> values) {
            addCriterion("targetAmount not in", values, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountBetween(Integer value1, Integer value2) {
            addCriterion("targetAmount between", value1, value2, "targetamount");
            return (Criteria) this;
        }

        public Criteria andTargetamountNotBetween(Integer value1, Integer value2) {
            addCriterion("targetAmount not between", value1, value2, "targetamount");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(String value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(String value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(String value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(String value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(String value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLike(String value) {
            addCriterion("createTime like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotLike(String value) {
            addCriterion("createTime not like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<String> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<String> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(String value1, String value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(String value1, String value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andGoodclassIsNull() {
            addCriterion("goodClass is null");
            return (Criteria) this;
        }

        public Criteria andGoodclassIsNotNull() {
            addCriterion("goodClass is not null");
            return (Criteria) this;
        }

        public Criteria andGoodclassEqualTo(String value) {
            addCriterion("goodClass =", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassNotEqualTo(String value) {
            addCriterion("goodClass <>", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassGreaterThan(String value) {
            addCriterion("goodClass >", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassGreaterThanOrEqualTo(String value) {
            addCriterion("goodClass >=", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassLessThan(String value) {
            addCriterion("goodClass <", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassLessThanOrEqualTo(String value) {
            addCriterion("goodClass <=", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassLike(String value) {
            addCriterion("goodClass like", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassNotLike(String value) {
            addCriterion("goodClass not like", value, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassIn(List<String> values) {
            addCriterion("goodClass in", values, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassNotIn(List<String> values) {
            addCriterion("goodClass not in", values, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassBetween(String value1, String value2) {
            addCriterion("goodClass between", value1, value2, "goodclass");
            return (Criteria) this;
        }

        public Criteria andGoodclassNotBetween(String value1, String value2) {
            addCriterion("goodClass not between", value1, value2, "goodclass");
            return (Criteria) this;
        }

        public Criteria andIspassIsNull() {
            addCriterion("isPass is null");
            return (Criteria) this;
        }

        public Criteria andIspassIsNotNull() {
            addCriterion("isPass is not null");
            return (Criteria) this;
        }

        public Criteria andIspassEqualTo(Integer value) {
            addCriterion("isPass =", value, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassNotEqualTo(Integer value) {
            addCriterion("isPass <>", value, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassGreaterThan(Integer value) {
            addCriterion("isPass >", value, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassGreaterThanOrEqualTo(Integer value) {
            addCriterion("isPass >=", value, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassLessThan(Integer value) {
            addCriterion("isPass <", value, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassLessThanOrEqualTo(Integer value) {
            addCriterion("isPass <=", value, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassIn(List<Integer> values) {
            addCriterion("isPass in", values, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassNotIn(List<Integer> values) {
            addCriterion("isPass not in", values, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassBetween(Integer value1, Integer value2) {
            addCriterion("isPass between", value1, value2, "ispass");
            return (Criteria) this;
        }

        public Criteria andIspassNotBetween(Integer value1, Integer value2) {
            addCriterion("isPass not between", value1, value2, "ispass");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}